// -----------------------------------------------------------------------------
// r2f group for 5N
// -----------------------------------------------------------------------------
$.fn.getR2fdata = function(_lotto_id, _gametype){
 $().disAreaObj();
 $.getJSON('op.php?op=xml_3d&fp=rate_3d&playtype=r2f&lotto_id_3d=' + _lotto_id + "&gametype=" + _gametype + "&disk="+ $("select#slcDisk").val() ,function(ratedata){
      var dataLen = 0;
      var urlPre = "";
      var hrefStr = "";
      var palygroup = "r2f";
      
      if(ratedata.errormsg != undefined){
        $("div#errormsg").addClass("error").text("No Rate data");
      }else{
        var disk = $("select#slcDisk").val(); 
        
        // two face     
        $().showTabelDataTwoFace(ratedata.r62_0,"tblNowBet02",disk,_gametype,palygroup,'62_0');
        $().showTabelDataTwoFace(ratedata.r63_0,"tblNowBet02",disk,_gametype,palygroup,'63_0');
        $().showTabelDataTwoFace(ratedata.r64_0,"tblNowBet02",disk,_gametype,palygroup,'64_0');
        $().showTabelDataTwoFace(ratedata.r65_0,"tblNowBet02",disk,_gametype,palygroup,'65_0');
        $().showTabelDataTwoFace(ratedata.r66_0,"tblNowBet02",disk,_gametype,palygroup,'66_0');
        $().showTabelDataTwoFace(ratedata.r67_0,"tblNowBet02",disk,_gametype,palygroup,'67_0');
        $().showTabelDataTwoFace(ratedata.r68_0,"tblNowBet02",disk,_gametype,palygroup,'68_0');
        $().showTabelDataTwoFace(ratedata.r17_0,"tblNowBet02",disk,_gametype,palygroup,'17_0');
        $().showTabelDataTwoFace(ratedata.r18_0,"tblNowBet02",disk,_gametype,palygroup,'18_0');
        $().showTabelDataTwoFace(ratedata.r19_0,"tblNowBet02",disk,_gametype,palygroup,'19_0');
   }
   
   $().redisAreaObj();
   $("div#mainPageData").show();
   $("div#errormsg").text("");
   // change text or checkbox type
    var timebtnType = $("input:hidden#timebtnType").val();
    if(timebtnType == "checkbox"){
      $().timebtnTypeToCheckbox(); 
    }
    
    $("table#tblNowBet02 td:has(input)").parent("tr.td2").hover(
      function() {$(this).children().addClass("trover");}
      , function() {$(this).children().removeClass("trover");}
    );
    
  });
};